<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script src="../js/jquery-3.5.1.min.js"></script>
    <script>
        var num = 0;
        var t = setInterval(function () {
            $.post("../q8",{num:num},function(data) {
                // num = num+1;
                document.getElementById("dis").innerHTML = "第"+ data +"次执行";
                num = data
            },"text");

        },1000*30);

    </script>
</head>
<body>
<p id="dis">第0次执行</p>

</body>
</html>